package com.zcxy.sys.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zcxy.core.bean.PageQuery;
import com.zcxy.sys.entity.SysAttachment;
import com.zcxy.sys.pojo.SysAttachmentVo;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;


/**
 * Service接口
 *
 * @author zcc
 * @email 860474958@qq.com
 * @date 2020-07-01
 */
public interface ISysAttachmentService extends IService<SysAttachment> {
    /**
     * ：分页查询
     *
     *   PageQuery<T>
     * @return Result<IPage < SysAttachmentVo>>
     */
    IPage<SysAttachmentVo> queryPageList(PageQuery<SysAttachment> queryVo);

    /**
     * ：复杂列表查询
     *
     * SysAttachment
     * @return List<SysAttachmentVo>
     */
    List<SysAttachmentVo> queryList(SysAttachment sysAttachment);

    /**
     * ：新增
     *
     * SysAttachment
     * @return void
     */
    void addSysAttachment(SysAttachment queryVo);

    /**
     * :更新
     *
     * SysAttachment
     * @return void
     */
    void updateSysAttachment(SysAttachment queryVo);

    /**
     * :删除
     *
     * SysAttachment
     * @return void
     */
    void removeSysAttachment(String id);


    /**
     * :删除
     *
     * @return void
     */
    void removeAllSysAttachment(List<String> ids);


    void download(SysAttachment queryVo, HttpServletResponse response) throws IOException;

}
